<?php

/**
 * @author Martin Pernica
 * @copyright 2008
 */

function getSectionName($id){
	$query = $GLOBALS['db']->query("SELECT name FROM ".$GLOBALS['db_prefix']."sections WHERE id = '".intval($id)."' LIMIT 1");
	$data = $query->fetch_object();
	if(empty($data->name)) return ARTICLE_SECTION_NOTFOUND;
	return $data->name;
}

?>